<% if params[:app] %>
    <%= render partial: 'shared/update_feeds', locals: {feed_data: @feed_data} %>
    feedbin.data.tagNames = <%= raw json_escape(@user.tag_names.to_json) %>;
    var target = $(".feeds .feed-link[data-feed-id=<%= @subscription.feed.id %>]").first();
    feedbin.scrollTo(target, $('.feeds'));
    target[0]?.click();
    feedbin.data.user_titles[<%= @subscription.feed_id %>] = "<%= j @subscription.title %>";
    feedbin.applyUserTitles(false);
<% else %>
    $('[data-behavior~=user_title]').html("<%= j @subscription.title %>");
<% end %>
